package com.yy.permissions_general.module.system.dict.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yy.permissions_general.module.system.dict.entity.DictData;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 字典详情 Mapper 接口
 * </p>
 *
 * @author YY
 * @since 2021-08-08
 */
public interface DictDataMapper extends BaseMapper<DictData> {

    /**
    * 分页查询
    * @param pageContext
    * @param dictData
    * @return
    */
    Page<DictData> selectPage(@Param("page")Page pageContext, @Param("dictData")DictData dictData);

    /**
     * 删除字典详情
     * @param dictId
     * @return
     */
    int deleteByDictId(@Param("dictId")Integer dictId);

    /**
     * 字典下拉
     * @param pageContext
     * @param map
     * @return
     */
    Page<Object> getDictDataXMSelect(@Param("page")Page pageContext, @Param("map")Map<String,Object> map);

}

